<div class="clients form">
<div class="actions specific">
	<ul>
		<li><?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $this->Form->value('Client.id')), null, sprintf(__('Esta seguro que desea eliminar el cliente # %s?', true), $this->Form->value('Client.last_name').' '.$this->Form->value('Client.first_name'))); ?></li>
	</ul>
</div>
<?php echo $this->Form->create('Client');?>
	<fieldset>
		<legend><?php __('Editar Cliente'); ?></legend>
	<?php
		echo $this->Form->input('id', array('label' => 'Id'));
		echo $this->Form->input('last_name', array('label' => 'Apellido'));
		echo $this->Form->input('first_name', array('label' => 'Nombre'));
		echo $this->Form->input('addres', array('label' => 'Domicilio'));
		echo $this->Form->input('phone', array('label' => 'Teléfono'));
                echo $this->Form->input('high_date', array('type' => 'text', 'label' => 'Fecha de Alta'));
		echo $this->Form->input('locality', array('label' => 'Localidad'));
		echo $this->Form->input('province_id', array('label' => 'Provincia'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Guardar', true));?>
</div>
<script type="text/javascript">
    (function($){
        // Date picker
        $("#ClientHighDate").datepicker({
            //yearRange: '1970:2010',
            defaultDate: new Date(),
            dateFormat: 'dd/mm/yy',
            changeMonth: true,
            changeYear: true
        });
        
        //toda la documentacion de esta librería la encontras aca
        //http://jqueryui.com/demos/datepicker/
    })(jQuery);
</script>